package com.gitee.qdbp.jdbc.support.convert;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.Date;
import org.springframework.core.convert.converter.Converter;

/**
 * LocalDateTime转换为Date
 *
 * @author zhaohuihua
 * @version 20210302
 */
public class LocalDateTimeToDateConverter implements Converter<LocalDateTime, Date> {

    @Override
    public Date convert(LocalDateTime source) {
        return DateConverter.convertToDate(source);
    }
}
